package demo2;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();
        Mouse mouse = new Mouse();

        KeyBoard keyBoard = new KeyBoard();

        computer.userService(mouse);
        System.out.println("=========");
        computer.userService(keyBoard);

        computer.powerOff();
    }
}
